<template>
    <div v-if="hasPermissions('chaosong')">
    <square-button :title="title" v-on="$listeners" v-bind="$attrs"
                   @click="showDialog" icon="el-icon-connection"></square-button>
        <copy-list-dialog :visible.sync="visible" v-if="visible"></copy-list-dialog>
    </div>
</template>
<script>
    import SquareButton from "@/components/WorkFlowsDialog/Case/SquareButton";
    import CopyListDialog from "../../../../views/officialDocument/components/CopyListDialog";

    export default {
        name: "CopyButton",
        components: {CopyListDialog, SquareButton},
        props: {
            title: {
                type: String,
                default: "抄送"
            }
        },
        data() {
            return {
                visible:false
            }
        },
        computed: {},
        created() {
        },
        methods: {
            showDialog() {
                this.visible=true
            },
        }
    }
</script>

